import type { FormProps, FormItemProps, RowProps, ColProps } from 'antd';
import type { ComponentType } from './compMap';

export interface ISchemaInfo extends FormItemProps {
  name: string;
  label?: string;
  component?: ComponentType;
  componentProps?: Record<string, any>;
  colProps?: ColProps;
}

export interface IFormProps extends FormProps {
  schemas: ISchemaInfo[];
  // 设置行的属性
  rowProps?: RowProps;
  maxRow?: number;
  showSubmit?: boolean;
  showCancel?: boolean;
  loading?: boolean;
  onSubmit?: (values: Record<string, any>) => void;
}
